package org.gongzhen; // 请根据你的项目结构调整包名

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

import java.time.LocalDateTime;


/**
 * 帖子实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Post {

    private Integer id;

    private Integer userId;

    private Integer status = 1; // 状态: 1正常, 2已删除

    private String content;// 内容

    private String images;// 图片

    private String tags;// 标签

    private String location;// 位置

    private Integer categoryId;// 分类

    private Integer viewCount = 0;// 浏览数

    private Integer commentCount = 0;// 评论数

    private Integer shareCount = 0;// 分享数

    private Integer likeCount = 0;// 点赞数

    private Integer collectionCount = 0;// 收藏数

    private LocalDateTime createTime;

    private LocalDateTime updateTime;
}